<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>双向绑定</title>
</head>
<body>
    <div id="app">
        <!-- currentTime1是个方法，要用括号调用 -->
        <!-- currentTime2是个计算属性，不要用括号调用 -->
        {{currentTime1()}}
        <!-- {{currentTime1}} -->
        <!-- {{currentTime2()}} -->
        {{currentTime2}}
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <script>
        var vue =new Vue({
            el:"#app",
            methods:{
                currentTime1:function(){
                    return Date.now()
                }
            },
            computed:{
                currentTime2:function(){
                    return Date.now()
                }
            }  
        })  
    </script>
</body>
</html>